package com.ipan.kits.log4j;

import java.util.Date;

/**
 * 自定义错误日志
 * 
 * @author iPan
 * @date 2023-04-14
 */
public class DefineErrorMessageLog implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	/** 日志等级 */
	private String loggerLevel = null;
	/** 日志名称 */
	private String loggerName = null;
	/** 线程名称 */
	private String threadName = null;
	/** 类名 */
	private String className = null;
	/** 方法名 */
	private String methodName = null;
	/** 行数 */
	private String lineNumber = null;
	/** 异常名称 */
	private String renderedMessage = null;
	/** 异常详细 */
	private String throwableStrRep = null;
	/** 异常时间 */
	private Date errorTime = null;

	public String getLoggerLevel() {
		return loggerLevel;
	}

	public void setLoggerLevel(String loggerLevel) {
		this.loggerLevel = loggerLevel;
	}

	public String getLoggerName() {
		return loggerName;
	}

	public void setLoggerName(String loggerName) {
		this.loggerName = loggerName;
	}

	public String getThreadName() {
		return threadName;
	}

	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(String lineNumber) {
		this.lineNumber = lineNumber;
	}

	public String getRenderedMessage() {
		return renderedMessage;
	}

	public void setRenderedMessage(String renderedMessage) {
		this.renderedMessage = renderedMessage;
	}

	public String getThrowableStrRep() {
		return throwableStrRep;
	}

	public void setThrowableStrRep(String throwableStrRep) {
		this.throwableStrRep = throwableStrRep;
	}

	public Date getErrorTime() {
		return errorTime;
	}

	public void setErrorTime(Date errorTime) {
		this.errorTime = errorTime;
	}

	@Override
	public String toString() {
		return "DefineErrorMessageLog [loggerLevel=" + loggerLevel + ", loggerName=" + loggerName + ", threadName=" + threadName
				+ ", className=" + className + ", methodName=" + methodName + ", lineNumber=" + lineNumber + ", renderedMessage="
				+ renderedMessage + ", throwableStrRep=" + throwableStrRep + ", errorTime=" + errorTime + "]";
	}

}
